this._settings = settings;
this._imagePath = imagePath;
this._editionMode = editionMode;
- this._capturedEventId = global.stage.connect('captured-event', this._onCapturedEvent.bind(this));
this._padChooser = null;
let seat = Clutter.get_default_backend().get_default_seat();
this._padDiagram.updateLabels(this._getActionText.bind(this));
}
- _onCapturedEvent(actor, event) {
+ vfunc_captured_event(event) {
let isModeSwitch =
(event.type() == Clutter.EventType.PAD_BUTTON_PRESS ||
event.type() == Clutter.EventType.PAD_BUTTON_RELEASE) &&
this._deviceAddedId = 0;
}
- if (this._capturedEventId != 0) {
- global.stage.disconnect(this._capturedEventId);
- this._capturedEventId = 0;
- }
-
this.emit('closed');
}
});